//
//  Intervento.h
//  InterventixApp
//
//  Created by Diego on 29/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Cliente.h"
#import "Utente.h"

@interface Intervento : NSObject

@property (nonatomic,retain) NSString *tipologia,*prodotto,*motivo,*nominativo, *modalita,*firma,*note,*riffattura,*rifscontrino;
@property (nonatomic,retain) NSDate *dataora;
@property (nonatomic,retain) NSNumber *idIntervento,*costoManodopera,*costoComponenti,*costoAccessori,*importo,*totale,*iva,*revisione;
@property (nonatomic,retain) NSMutableArray *dettagli;
@property (nonatomic,retain) Cliente *cliente;
@property (nonatomic,retain) Utente *utente;
@property (nonatomic) BOOL cancellato,cestinato,chiuso,conflitto,saldato,inuse;

-(NSMutableDictionary *) convertToDictionary;
-(void) readFromMutableDictionary:(NSMutableDictionary *)diz;
-(void) readFromDictionary:(NSDictionary *)diz;
-(BOOL) check;

-(double) getHourAllDett;

-(unsigned long long) hashcode;




@end
